﻿using System.Collections.Generic;

namespace Web7.Core.Domain.NHibernate
{
    class Web7CacheConfig
    {
        private readonly Dictionary<string, string> _properties;
        private readonly string _regionName;

        public Web7CacheConfig(string region, string expiration, string priority)
        {
            _regionName = region;
            var dictionary = new Dictionary<string, string> {{"expiration", expiration}, {"priority", priority}};
            _properties = dictionary;
        }

        public IDictionary<string, string> Properties
        {
            get
            {
                return _properties;
            }
        }

        public string Region
        {
            get
            {
                return _regionName;
            }
        }

    }
}
